# 作者：要努力，努力，再努力
# 开发时间：2022/4/28 16:21

class Car():
    def __init__(self, type, no):
        self.type = type
        self.no = no

    def start(self):
        pass

    def stop(self):
        pass


class Texi(Car):
    def __init__(self, type, no, company):
        super().__init__(type, no)
        self.company = company

    def start(self):
        print(f'我是{self.company}出租车公司，我的车牌是{self.no}')

    def stop(self):
        print('目的地到达')


class FamilyCar(Car):
    def __init__(self, type, no, name):
        super().__init__(type, no)
        self.name = name

    def stop(self):
        print('目的地到了，玩！')

    def start(self):
        print(f'我的{self.name}汽车')


if __name__ == '__main__':
    taxi = Texi('大众', '粤Y55555', '长城')
    taxi.start()
    taxi.stop()
    print(' ' * 30)
    familyCar = FamilyCar('丰田', '粤Y66666', '小牧')
    familyCar.start()
    familyCar.stop()


